#define  _CRT_SECURE_NO_WARNINGS 1
#include "Stack.h"

void test()
{
	Stack head;
	StackInit(&head);
	StackPush(&head, 1);
	StackPush(&head, 2);
	StackPush(&head, 3);
	StackPush(&head, 4);//1 2 3 4
	StackPrint(&head);
	StackPop(&head);//1 2 3
	StackPrint(&head);
	int pos = StackTop(&head);
	printf("%d",StackEmpty(&head));
	StackDestroy(&head);
}


int main()
{
	test();
	return 0;
}